#include "ReturnNode.h"

void CReturnNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"return");

    if (Value)
    {
        WH::Print(U" ");
        Value->DebugPrint(0);
    }

    WH::Print(U";\n");
}

std::shared_ptr<CScriptToken> CReturnNode::GetFirstToken()
{
    return Return;
}
